package team.seekers.hula.question.answer.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import team.seekers.hula.question.answer.entity.vo.AnswerManageListVO;
import team.seekers.hula.question.answer.entity.dao.AnswerDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import team.seekers.hula.question.answer.entity.dto.AnswerQueryDTO;

import java.util.List;

/**
 * <p>
 * 一个回答 Mapper 接口
 * </p>
 *
 * @author hbc
 * @since 2021-02-15
 */
public interface AnswerMapper extends BaseMapper<AnswerDO> {

    IPage<AnswerManageListVO> pageAnswerCondition(@Param("page") Page<AnswerQueryDTO> page, @Param("answerQuery") AnswerQueryDTO answerQuery);

    List<AnswerManageListVO> getAnswerInfo();
}
